Skip to content

chore(deps): allow database ^6.0.0#18

Merged
abnegate merged 1 commit into
mainfrom
chore/database-caret-constraint
Jun 24, 2026
Merged

chore(deps): allow database ^6.0.0#18
abnegate merged 1 commit into
mainfrom
chore/database-caret-constraint

Conversation

@abnegate

Copy link
Copy Markdown
Member

Why

utopia-php/usage pinned utopia-php/database to 5.*|6.0.*, which caps it below 6.1.0 — the release that added the Database::getDocument() cache lease (the cache-aside read-after-write fix). Because cloud depends on both usage and server-ce, this cap was the binding constraint preventing database 6.1.0+ from resolving downstream, so the lease never reached cloud.

Change

Loosen the constraint to ^6.0.0 (matches server-ce's ^6.0.0). The lock now resolves database 6.2.0 + cache 3.1.0. The 6.x line is backward-compatible for the database API usage consumes — CI validates against the resolved versions.

Part of the cache-lease propagation chain: cache 3.1.0 → database 6.1.0 → { server-ce ✅, usage (this PR) } → cloud.

🤖 Generated with Claude Code

The previous `5.*|6.0.*` constraint capped utopia-php/database below 6.1.0,
which is where the getDocument cache-lease (read-after-write fix) landed. That
cap blocks the lease from reaching downstream consumers (cloud) that depend on
both this package and server-ce. Loosen to ^6.0.0 so 6.1.0+ can resolve; the
6.x line is backward-compatible for usage's API.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 24, 2026 05:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@greptile-apps

greptile-apps Bot commented Jun 24, 2026

Copy link
Copy Markdown

Greptile Summary

This PR widens the database dependency so newer 6.x releases can resolve. The main changes are:

  • utopia-php/database now uses a ^6.0.0 Composer constraint.
  • The lockfile resolves database 6.2.0 and cache 3.1.0.
  • Related transitive packages are updated in composer.lock.

Confidence Score: 3/5

The dependency update is small, but the package compatibility range narrows for consumers that still resolve database 5.x.

The changed files are limited to Composer metadata and the lockfile, and the intended 6.x uncap is straightforward. The remaining concern is install compatibility for existing consumers on the previously allowed 5.x line.

composer.json

T-Rex T-Rex Logs

What T-Rex did

  • Ran the initial dependency-resolution check to capture the base constraint of 5.*|6.0.* and verify the lock state (utopia-php/database 6.0.0, utopia-php/cache 3.0.2) with a cap check showing that 6.1.0 is blocked by the 6.0.* upper bound.
  • Updated the dependency constraints to ^6.0.0 and re-ran the resolution to observe updated locks (utopia-php/database 6.2.0, utopia-php/cache 3.1.0) and a cap check showing 6.1.0 is allowed under ^6.0.0.
  • Attempted Composer validation/install/test, but PHP and Composer commands were not found in the environment.

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (1): Last reviewed commit: "chore(deps): allow database ^6.0.0" | Re-trigger Greptile

Comment thread composer.json
"psr/http-client": "^1.0",
"utopia-php/client": "^0.1|^0.2",
"utopia-php/database": "5.*|6.0.*",
"utopia-php/database": "^6.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Preserve database 5.x

The new constraint allows newer database 6.x releases, but it also removes all database 5.x releases that were accepted before. An application that still resolves utopia-php/database 5.x can no longer install this package after this change, even though this PR does not add code that requires a database 6-only API. If the goal is only to uncap the 6.x line, keep the existing 5.x range and widen the 6.x range.

Suggested change
"utopia-php/database": "^6.0.0",
"utopia-php/database": "5.*|^6.0.0",

@abnegate abnegate merged commit ad898f9 into main Jun 24, 2026
4 checks passed
@abnegate abnegate deleted the chore/database-caret-constraint branch June 24, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants